-- GENERATED SPELL FOR [Wailing Soul] --


function spell0_27836(pUnit, Event) --@Tug Soul,Drain--
pUnit:FullCastSpellOnTarget(50027,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_27836', 12000, 1)
end

function Sorts_27836(pUnit, Event)
local choix_sorts_27836 = math.random(0, 0)
if choix_sorts_27836 == 0 then
pUnit:RegisterEvent('spell0_27836', 1, 1)
end
end

function mob27836_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27836', math.random(1500, 3000), 1)
end

function mob27836_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27836_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27836_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27836, 1, 'mob27836_Action')
RegisterUnitEvent(27836, 2, 'mob27836_Leave')
RegisterUnitEvent(27836, 3, 'mob27836_Kill')
RegisterUnitEvent(27836, 4, 'mob27836_Die')
